package com.phyane.home.action;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.phyane.home.param.ContentParam;
import com.phyane.home.service.SendNewService;

public class ShowAction extends ActionSupport{

	private List<ContentParam> list = null;
	private static final long serialVersionUID = 5282840675665852162L;

	public String execute(){
		list = new ArrayList<ContentParam>();
		ContentParam cp1=new ContentParam();
		cp1.setImage("/phyane/test/iPod.png");
		cp1.setContent("Loving you");
		list.add(cp1);
		ContentParam cp2 = new ContentParam();
		cp2.setContent("Missing you");
		cp2.setImage("/phyane/test/iTouch.png");
		list.add(cp2);
		ContentParam cp3 = new ContentParam();
		cp3.setContent("Nowadays");
		cp3.setImage("/phyane/test/iTunes.png");
		list.add(cp3);
		ContentParam cp4 = new ContentParam();
		cp4.setContent("Hello world");
		cp4.setImage("/phyane/test/Weather.png");
		list.add(cp4);
		ContentParam cp5 = new ContentParam();
		cp5.setContent("2013, new year");
		cp5.setImage("/phyane/test/YouTube.png");
		list.add(cp5);
		
		return SUCCESS;
	}

	public List<ContentParam> getList() {
		return list;
	}

	public void setList(List<ContentParam> list) {
		this.list = list;
	}
	
	
}
